package tmproject.hlhj.fhp.tmvote.customView

import android.app.Dialog
import android.content.Context
import android.os.Bundle
import kotlinx.android.synthetic.main.dialog_again.*
import tmproject.hlhj.fhp.tmvote.R

/**
 * Created by Never Fear   on 2018\8\22 0022.
Never More....
 */
class AgainDialog(private val c:Context,private val listener:AgainListener) :Dialog(c, R.style.MyDialog) {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.dialog_again)

        btDiss.setOnClickListener {
            dismiss()
        }
        btYes.setOnClickListener {
            listener.yes()
        }
    }

    interface AgainListener{
        fun yes()
    }
}